package cn.lili.modules.wallet.service;

import cn.lili.common.vo.PageVO;
import cn.lili.modules.member.entity.vo.MemberFPointsHistoryVO;
import cn.lili.modules.payment.entity.dos.UserFPointsHistory;
import cn.lili.modules.payment.entity.dos.UserPointsHistory;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 用户积分历史业务层
 *
 * @author Bulbasaur
 * @since 2020-02-25 14:10:16
 */
public interface UserFPointsHistoryService extends IService<UserFPointsHistory> {

    /**
     * 获取用户积分VO
     *
     * @param userId 用户ID
     * @return 用户积分VO
     */
    MemberFPointsHistoryVO pointsHistoryVO(String userId);

    /**
     * 用户F分历史
     *
     * @param page     分页
     * @param userId   用户ID
     * @param username 用户名
     * @return 积分历史分页
     */
    Page<UserFPointsHistory> pointsHistoryList(PageVO page, String userId, String username);

}